package com.unytech.watersoil.entity;

import java.io.Serializable;
import java.util.Date;

public class BaseObject implements Serializable, Cloneable {
	protected String baseid;
	protected String recorder; // 记录人
	protected Date recordTime; // 记录时间
	protected Date updateTime; //修改时间

//    private String fields1;
//    private String fields2;
//    private String fields3;
//    private String siphonName;

//    public String getSiphonName() {
//        return siphonName;
//    }
//
//    public void setSiphonName(String siphonName) {
//        this.siphonName = siphonName;
//    }
//
//    public String getFields1() {
//        return fields1;
//    }
//
//    public void setFields1(String fields1) {
//        this.fields1 = fields1;
//    }
//
//    public String getFields2() {
//        return fields2;
//    }
//
//    public void setFields2(String fields2) {
//        this.fields2 = fields2;
//    }
//
//    public String getFields3() {
//        return fields3;
//    }
//
//    public void setFields3(String fields3) {
//        this.fields3 = fields3;
//    }

	public String getRecorder() {
		return recorder;
	}

	public void setRecorder(String recorder) {
		this.recorder = recorder;
	}

	public Date getRecordTime() {
		return recordTime;
	}

	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}


	public String getBaseid() {
		return baseid;
	}

	public void setBaseid(String baseid) {
		this.baseid = baseid;
	}

	public BaseObject() {
	}

	public boolean equals(Object obj) {
		return obj != null && obj.getClass() == this.getClass()
				&& ((BaseObject) obj).getBaseid().equals(this.getBaseid());
	}

	public int hashCode() {
		int hc = 37 * 17;
		if (this.getBaseid() != null) {
			hc += this.getBaseid().hashCode();
		} else {
			hc += super.hashCode();
		}
		return hc;
	}
    
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}
